package com.xiuyou.tracksdk.parse;

import android.util.Log;

import com.xiuyou.tracksdk.http.ResponseParams;
import com.xiuyou.tracksdk.tracksdk.module.BaseResult;

import org.json.JSONObject;

/**
 * Created by lhy on 2016/6/23.
 */
public class CommonTrackParse extends ResponseParams {
    @Override
    public Object parse(String s) throws Exception {
        Log.e("轨迹查询结果是",s.toString());
        BaseResult baseResult = new BaseResult();
        JSONObject jsonObject = new JSONObject(s);
        String status = jsonObject.getString("status");
        baseResult.setStatus(status);
        String msg = jsonObject.getString("message");
        baseResult.setMessage(msg);
        return baseResult;
    }
}
